<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>uni_app返回多个节点的信息</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  </style>
</head>

<body>
  <div></div>
</body>
<script>
  "use strict"; {
    /* 
      res中是两个节点的数据,是个数组，具体信息
        id	String	节点的 ID
        dataset	Object	节点的 dataset
        left	Number	节点的左边界坐标
        right	Number	节点的右边界坐标
        top	Number	节点的上边界坐标
        bottom	Number	节点的下边界坐标
        width	Number	节点的宽度
        height  节点的高度
      
      let query = uni.createSelectorQuery()
      query.select("#btn1").boundingClientRect()
      query.select("#btn2").boundingClientRect()
      query.exec(res => {
        
      })
    */
  };
</script>

</html>